/*
 * DataTypes.c
 *
 * Created: 2012-05-28 22:54:36
 *  Author: Sebastian_2
 */ 

#include "DataTypes.h"

point IncX(point *p, uint8_t val) {
	point p2 = *p;
	p2.x += val;
	return p2;
}

point IncY(point *p, uint8_t val) {
	point p2 = *p;
	p2.y += val;
	return p2;
}

point DecX(point *p, uint8_t val) {
	point p2 = *p;
	p2.x -= val;
	return p2;
}

point DecY(point *p, uint8_t val) {
	point p2 = *p;
	p2.y -= val;
	return p2;
}